package application.script;

public class Method
{
	private int id = 4;
	private String name = "";
	private String content = "";
	private String description = "";
	public int getId() {
		return id;
	}
	public String getName() {
		return name;
	}
	public String getContent() {
		return content;
	}
	public String getDescription() {
		return description;
	}
	public void setName(String n)
	{
		this.name = n;
	}
	public void setContent(String c)
	{
		this.content = c;
	}
	public void setId(int id)
	{
		this.id = id;
	}
	public void setDescription(String d)
	{
		this.description = d;
	}
	public String toString()
	{
		String st = id + " ;" + name + " - " + description + "\n";
		String[] splitter = content.split("\n");
		for(int i = 0; i < splitter.length; i++)
		{
			if(!splitter[i].startsWith("\t"))
				splitter[i] = "\t" + splitter[i];
			st += (splitter[i].trim().length() > 0?splitter[i] + "\n":"");
		}
		
		return st;
	}
}
